package com.mifengs.mall.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * Created by lynn on 2018/4/19.
 */

public class BootReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        Intent intentApp = context.getPackageManager().getLaunchIntentForPackage("com.mifengs.mall");
        if (null != intentApp)
        {
            context.startActivity(intentApp);         //启动意图
        }
    }
}
